If you're lucky, one of CC Mode's built-in styles might be just what you're looking for. These are:
gnuk&rbsdwhitesmithstroustrupellemtellinuxpythonjavac-default-style
installs this style when you enter
java-mode.awkc-default-style
installs this style when you enter
awk-mode.usersetqs
and c-set-offsets at the top level of your
.emacs file (see
Config Basics).
The style system creates this style as part of its
initialization and doesn't modify it afterwards.[1] This document is available at http://www.doc.ic.ac.uk/lab/cplus/c++.rules/ among other places.
[2] Python is a high level scripting language with a C/C++ foreign function interface. For more information, see http://www.python.org/.